package com.micro.business.admin.service;

import com.micro.business.admin.dto.order.OrderParam;
import com.micro.business.common.api.CommonResult;
import org.springframework.transaction.annotation.Transactional;

/**
 * <P>前台订单管理Service</P>
 *
 * @author 高仕立
 * @date 2019/8/4 9:40 AM
 * @since
 */
public interface OmsPortalOrderService  {
    /**
     * 根据提交信息生成订单
     */
    @Transactional(rollbackFor = Throwable.class)
    CommonResult generateOrder(OrderParam orderParam);

    /**
     * 取消单个超时订单
     */
    @Transactional(rollbackFor = Throwable.class)
    void cancelOrder(Long orderId);
}